function lazy(comp) {
    return () => import("@/" + comp)
}
export default [
    {
        path: '/home',
        name: 'Home',

        component: lazy('pages/Home'),
    },
    {
        path: '/login',
        name: 'Login',
        // 传递固定参数和状态的最优解
        meta: {
            ishidden: true
        },
        component: lazy('pages/Login')
    },
    {
        path: '/register',
        name: 'Register',
        meta: {
            ishidden: true
        },
        component: lazy('pages/Register')
    },
    {
        path: '/search',
        name: 'Search',
        component: lazy('pages/Search')
    },
]